//
//  IDCListPeopleViewController.m
//  Single View
//
//  Created by iD Student on 7/12/13.
//  Copyright (c) 2013 jasonkurtzman. All rights reserved.
//

#import "IDCListPeopleViewController.h"
#import "IDCViewController.h"
#import "IDCAppDelegate.h"

@interface IDCListPeopleViewController ()

@end

@implementation IDCListPeopleViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    tableData = [[NSArray alloc] initWithObjects:@"Jason", @"Charles", @"No Name One", @"No Name 2", nil];
	// Do any additional setup after loading the view.
}

-(NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [tableData count];
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *tableIdentifier = @"People";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:tableIdentifier];
    if(cell == nil)
    {
        cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:tableIdentifier];
    }
    NSUInteger row = [indexPath row];
    cell.textLabel.text = tableData[row];
    return cell;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
